<?php

$top_navs = array(
	// 一般情况下的顶部导航栏
	'normal' => array(
		'login'    => array('title' => '登陆', 'link' => '/login'),
		'register' => array('title' => '注册', 'link' => '/register'),
//		'about'    => array('title' => '关于', 'link' => '/about'),
//		'faq'      => array('title' => '帮助', 'link' => '/faq'),
	),

	// 用户登陆后的顶部导航栏
	'logged' => array(
		'user'    => array('title' => '',    'link' => '/dr-admin/dr-page-userinfo.php?uid='), // 需要额外的用户名
		'setting' => array('title' => '设置', 'link' => '/dr-admin/dr-page-editinfo.php'), // 需要额外获取用户名
		'logout'  => array('title' => '退出', 'link' => '/dr-includes/dr-page-logout.php'),
//		'about'   => array('title' => '关于', 'link' => '/about'),
//		'faq'     => array('title' => '帮助', 'link' => '/faq'),
	),
);

$menus = array(
	'curr' => '',
	'menus' => array(
		'questions'  => array('title' => '问题',   'link' => '/questions'),
		'tags'       => array('title' => '标签',   'link' => '/tags'),
		'users'      => array('title' => '用户',   'link' => '/users'),
		// 'badges'     => array('title' => '勋章',   'link' => '/badges'),
		// 'unanswered' => array('title' => '未回答', 'link' => '/unanswered'),
		//'statistic'  => array('title' => '统计',   'link' => '/statistic'),
		'admin'      => array('title' => '管理',   'link' => '/admin'),
	),
);

$white_tabs = array(
	'home' => array('hot', 'week', 'month'),
);

$tab_menus = array(
	// 首页的Tab Menu
	'home' => array(
		'title' => '热门问题',
		'curr'  => 'hot',
		'tabs'  => array(
			'hot'   => array('title' => '最近', 'link' => '/?tab=hot'),
			'week'  => array('title' => '本周', 'link' => '/?tab=week'),
			'month' => array('title' => '本月', 'link' => '/?tab=month'),
		),
	),

	'login' => array(
		'title' => '登录到iDaren',
		'curr'  =>  '',
		'tabs'  => array(),
	),

	'register' => array(
		'title' => '免费注册一个帐号',
		'curr'  =>  '',
		'tabs'  => array(),
	),

	'ask' => array(
		'title' => '提一个问题',
		'curr'  =>  '',
		'tabs'  => array(),
	),

	// 问题页面的Tab Menu
	'questions' => array(
		'title' => '全部问题',
		'curr'  => 'newest',
		'tabs'  => array(
			'newest'     => array('title' => '最新',   'link' => '?tab=newest'),
			'hot'        => array('title' => '热门',   'link' => '?tab=hot'),
			'solved'     => array('title' => '已解决', 'link' => '?tab=solved'),
			'unanswered' => array('title' => '未回答', 'link' => '?tab=unanswered'),
		),
	),

	'questions-old' => array(
		'title' => '全部问题',
		'curr' => 'allquestion',
		'tabs' => array(
			'allquestion' => array('title' => '全部',   'link' => '?list=allquestion'),
			'answered'    => array('title' => '已回答', 'link' => '?list=answered'),
			'unanswered'  => array('title' => '待回答', 'link' => '?list=unanswered'),
			'bested'      => array('title' => '已解决', 'link' => '?list=bested'),
			'unbested'    => array('title' => '待解决', 'link' => '?list=unbested'),
		),
	),

	'question' => array(
		'title' => '',
		'curr'  => '',
		'tabs'  => array(),
	),

	'question_answers' => array(
		'title' => '%d 个回答',
		'curr'  => 'votes',
		'tabs' => array(
			'newest' => array('title' => '从新到旧',   'link' => '/dr-includes/dr-page-question-answer.php?qid=%d&order=newest'),
			'oldest' => array('title' => '从旧到新',   'link' => '/dr-includes/dr-page-question-answer.php?qid=%d&order=oldest'),
			'votes'  => array('title' => '投票数量',   'link' => '/dr-includes/dr-page-question-answer.php?qid=%d&order=votes'),
		),
	),

	'tags-old' => array(
		'title' => '标签',
		'curr'  => 'name',
		'tabs'  => array(
			'name'   => array('title' => '名称', 'link' => '?order=name'),
			'number' => array('title' => '热度', 'link' => '?order=number'),
		),
	),

	'users-old' => array(
		'title' => '用户',
		'curr'  => '',
		'tabs'  => array(
			'name'   => array('title' => '名称', 'link' => '?order=name'),
			'number' => array('title' => '积分', 'link' => '?order=number'),
			'newest' => array('title' => '最新', 'link' => '?order=newest'),
			'oldest' => array('title' => '最老', 'link' => '?order=oldest'),
		),
	),


	'search' => array(
		'title' => '搜索结果',
		'curr'  => '',
		'tabs'  => array(
			
		),
	),

	'user_info' => array(
		'title' => '普通用户',
		'curr'  => '',
		'tabs'  => array(

		),
	),

	'user_info_detail' => array(
		'title' => '',
		'curr'  => 'message',
		'tabs'  => array(
			'message'    => array('title' => '新消息', 'link' => '?uid=%d&tab=message&display=yes',),
			'activity'   => array('title' => '活动记录', 'link' => '?uid=%d&tab=activity',),
			'question'   => array('title' => '问题和关注', 'link' => '?uid=%d&tab=question',),
			'listen'     => array('title' => '收听', 'link' => '?uid=%d&tab=listen',),
			'reply'      => array('title' => '回答和评论', 'link' => '?uid=%d&tab=reply',),
			'vote'       => array('title' => '投票', 'link' => '?uid=%d&tab=vote',),
			'statistic'  => array('title' => '数据统计', 'link' => '?uid=%d&tab=statistic',),
		),
	),

	'user_profile_edit' => array(
		'title' => '编辑信息',
		'curr'  => 'profile',
		'tabs' => array(
			'profile'  => array('title' => '个人档案', 'link' => '?tab=profile'),
			'gravatar' => array('title' => '个人头像', 'link' => '?tab=gravatar'),
		),
	),

);

$filters = array(
	'questions-old' => array(
		'allquestion' => array (
			'curr' => 'time',
			'tabs' => array(
				'answers' => array('title' => '回答数', 'link' => '?list=allquestion&order=answers'),
				'marks'   => array('title' => '关注数', 'link' => '?list=allquestion&order=marks'),
				'votes'   => array('title' => '投票数', 'link' => '?list=allquestion&order=votes'),
				'time'    => array('title' => '时间',   'link' => '?list=allquestion&order=time'),
			),
		),

		'answered' => array (
			'curr' => 'time',
			'tabs' => array(
				'answers' => array('title' => '回答数', 'link' => '?list=answered&order=answers'),
				'marks'   => array('title' => '关注数', 'link' => '?list=answered&order=marks'),
				'votes'   => array('title' => '投票数', 'link' => '?list=answered&order=votes'),
				'time'    => array('title' => '时间',   'link' => '?list=answered&order=time'),
			),
		),

		'unanswered' => array (
			'curr' => 'time',
			'tabs' => array(
				'answers' => array('title' => '回答数', 'link' => '?list=unanswered&order=answers'),
				'marks'   => array('title' => '关注数', 'link' => '?list=unanswered&order=marks'),
				'votes'   => array('title' => '投票数', 'link' => '?list=unanswered&order=votes'),
				'time'    => array('title' => '时间',   'link' => '?list=unanswered&order=time'),
			),
		),

		'bested' => array (
			'curr' => 'time',
			'tabs' => array(
				'answers' => array('title' => '回答数', 'link' => '?list=bested&order=answers'),
				'marks'   => array('title' => '关注数', 'link' => '?list=bested&order=marks'),
				'votes'   => array('title' => '投票数', 'link' => '?list=bested&order=votes'),
				'time'    => array('title' => '时间',   'link' => '?list=bested&order=time'),
			),
		),

		'unbested' => array (
			'curr' => 'time',
			'tabs' => array(
				'answers' => array('title' => '回答数', 'link' => '?list=unbested&order=answers'),
				'marks'   => array('title' => '关注数', 'link' => '?list=unbested&order=marks'),
				'votes'   => array('title' => '投票数', 'link' => '?list=unbested&order=votes'),
				'time'    => array('title' => '时间',   'link' => '?list=unbested&order=time'),
			),
		),
	),
);
